Here is a bunch of HyperCard 2.1 XCMDs that I wrote to help me debug my very first Think C 4.0.5 apple event aware program (of course, if you have Think v. 5... well, I suspect it will already be programmed in there!).
I have included the stack as well as source code and projects for Think versions. Best way to learn how to program some problem is to rip of some one else's code. Go for it. This code is free. Use it, hack it, tear it apart. Maybe even understand it. I must tell you, however, this is not code from the beautiful school of programming. There are a number of kludges in there (thought it worked one way, but it worked the other and too lazy to completely rewrite the thing!).
I'm sort of hoping that these programs will remove some of the fear of Apple Events for those who want to send them from HyperCard. HyperCard, if only it was free (!), strikes me as an ideal system scripting commands; and apple events the way to send the commands to subservient programs.
The files:
Send AE Events... HC 2.1 Stack Sends all core events. Can
also see what core event
classes are available.
NOTE: doesn't wait for a
reply by the receiver of the
apple event!
Apple Event Hints Text Doc TeachText should be able to read this. Some things I had
a lot of trouble with, so that
you might not!
aeCAVail Think C Proj Info about coercion handlers.
sendAECloseApp Think C Proj XFCN proj to send close app
sendAEOpenApp Think C Proj XFCN proj to send open app
sendAEOpenDoc Think C Proj XFCN proj to send open docs
sendAEPrintDoc Think C Proj XFCN proj to send print doc
source folder Contains all source for above projs.